<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.com">
<head>
    <meta charset="UTF-8">
    <title>商品展示页面</title>
    <link rel="stylesheet" type="text/css" media="screen" th:href="@{/css/admin.css}"   href="../static/css/admin.css" >
</head>
<body>
<table id="table_list">
    <tr id="title">
        <th>商品编号</th>
        <th>商品名称</th>
        <th>商品价格</th>
        <th>商品产地</th>
        <th>商品日期</th>
        <th>商品图片</th>
        <th>商品类别</th>
        <th>操作</th>
    </tr>
    <th:block th:each="g :${GoodsList}">
        <tr>
            <td th:text="${g.goodsid}"></td>
            <td th:text="${g.goodsname}"></td>
            <td th:text="${g.price}"></td>
            <td th:text="${g.address}"></td>
            <td th:text="${#dates.format(g.produceDate,'yyyy-MM-dd')}"></td>
            <td >
                <img th:src="${g.picture}" width="60" height="80">
            </td>
            <td th:text="${g.category.categoryname}"></td>
            <th>
            <a th:href="@{/goods/good_show_update(id=${g.goodsid})}">修改</a>
            </th>
        </tr>
    </th:block>
    <tr>
        <td>
            <a href="../goods/goods_show">添加商品</a>

        </td>

    </tr>
</table>
</body>
</html>